<?php

require_once APPPATH . 'core/BaseDAO.php';

use models\M_tipo_responsabilidad;

class TipoResponsabilidadDAO extends BaseDAO {

    function __construct() {
        parent::__construct();
    }
	
    public function getTipoResponsabilidad(){
		
        try {

            $query = $this->em->createQuery('SELECT t FROM models\M_tipo_responsabilidad t');

            $tiporesp = $query->getResult();

            return empty($tiporesp) ? FALSE : $tiporesp;
			
        } catch (Exception $e) {
            return FALSE;
        }
    }
		
}

